/*
 * Copyright (c) 2023-2025 elsfs Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.elsfs.cloud.module.ai.api.entity;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.elsfs.cloud.common.annotations.Spell;
import org.elsfs.cloud.common.core.entity.BaseSpellEntity;

/**
 * 模型平台
 *
 * @author zeng
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ColumnWidth(20)
public class AiModelPlatform extends BaseSpellEntity {
  @TableId
  @Schema(description = "平台id")
  @ExcelProperty(value = "平台id")
  private String platformId;

  @Spell
  @TableField(condition = SqlCondition.LIKE)
  @ExcelProperty(value = "平台名称")
  @Schema(description = "平台名称")
  private String name;

  @ExcelProperty(value = "平台描述")
  @Schema(description = "平台描述")
  private String desc;

  @ExcelProperty(value = "平台类型")
  @Schema(description = "平台类型")
  private String type;

  @ExcelProperty(value = "平台状态")
  @Schema(description = "平台状态")
  private String status;

  @ExcelProperty(value = "地址")
  @Schema(description = "地址")
  private String baseUrl;

  @ExcelProperty(value = "apiKey")
  @Schema(description = "apiKey")
  private String apiKey;
}
